import request from '@/utils/request'

export function brandList(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/brand/list`,
    method: 'post',
    data: query
  })
}

export function brandTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/brand/table`,
    method: 'post',
    data: query
  })
}

export function brandLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/brand/load`,
    method: 'get',
    params: query
  })
}

export function brandSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/brand/save`,
    method: 'post',
    data: query
  })
}

export function brandDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/brand/delete`,
    method: 'post',
    data: query
  })
}
